// 组件公用behavior
import { APPNAME } from '../config';
import { COS_CONF, DEFAULT_BG_LIST } from '../constants/common';

module.exports = Behavior({
    properties: {
        // 主色(主题色)
        theme: {
            type: String,
            value: '#16BC52',
        },
        themeColor: {
            type: String,
            value: 'color: #16BC52;',
        },
        themeBgColor: {
            type: String,
            value: 'background-color: #16BC52; color: rgba(255, 255, 255, 1);',
        },
        themeBorderColor: {
            type: String,
            value: 'border-color: #16BC52;',
        },
        customStyle: {
            type: String,
            value: '',
        },
        customClass: {
            type: String,
            value: '',
        },
    },
    data: {
        appName: APPNAME,
        // 图片cos地址
        cosConf: COS_CONF,
        // 默认背景图
        defaultBgList: DEFAULT_BG_LIST,
    },
})